package code.test.java.com.fsc.san;

public class Operator {
    public static void main(String[] args) {
        System.out.println(true&false);
        System.out.println(true&true);
        System.out.println(false&false);

        System.out.println(true|false);
        System.out.println(true|true);
        System.out.println(false|false);
        System.out.println("--------");

        System.out.println(!true);
        System.out.println(!false);
        System.out.println("--------");

        System.out.println(true^false);
        System.out.println(true^true);
        System.out.println(false^false);
        System.out.println("--------");
        int x=3,y=4;

        boolean result=++x>5 & y--<4;//&&  &
        System.out.println(x);
        System.out.println(y);
        System.out.println(result);
        System.out.println("--------");

        int z=x>y?x:y;
        System.out.println(z);
        System.out.println("--------");



    }
}
